-
Notifications
You must be signed in to change notification settings - Fork 905
Introspection: add typing.final on final classes #5552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
An other approach might be to add a Edit: moving to draft, this decorators idea makes more sense |
|
I have rebased the MR to use the new decorators mechanism |
| if let TypeHintExpr::Identifier(i) = expr { | ||
| Ok(i) | ||
| } else { | ||
| bail!("A decorator must be the identifier of a Python function") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A decorator can also be a call to such function, I guess we can support in future? (Should the error message be clearer, if so?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! Improved message: 9bd50b5
davidhewitt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM!
No description provided.